@font-face {
  font-family: YOUSHEBIAOTIHEI;
  src: url("/fonts/YOUSHEBIAOTIHEI-2.TTF");
}

@font-face {
  font-family: AGENCYR;
  src: url("/fonts/AGENCYR.TTF");
}
// 常用颜色变量
$--color-text-blue: #34d7fa;
$--color-text-white: #dbeffd;
$--color-border-blue: #367bb1;

.half-height {
  height: 50%;
}

.half-width {
  width: 50%;
}
// 避免污染暴雨图情
.ysqxx-layout {
  .half-height-panel {
    height: calc((100% - 20px) / 2);
    width: 100%;
    flex: 1;
    overflow: hidden;
  }

  .ff-agencyyr {
    font-family: AGENCYR, serif;
  }

  @each $size in 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 {
    .m-r-#{$size} {
      margin-right: #{$size}px;
    }

    .m-l-#{$size} {
      margin-left: #{$size}px;
    }
  }

  .c-gray-blue {
    color: $--color-text-white;
  }

  .c-light-green {
    color: #07ffde;
  }

  .panel-title-bg {
    background: url("~@/assets/images/ysqxx/panel-title.png") no-repeat left bottom;
    background-size: 100% 20px;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    padding-left: 21px;
  }

  .panel-title.active {
    background: linear-gradient(0deg, #03fa7d 0%, #fff 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Chrome, Safari */
    color: transparent;
  }

  .panel-title {
    background: linear-gradient(0deg, #03f4fa 0%, #fff 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Chrome, Safari */
    color: transparent;
    pointer-events: auto;
    cursor: pointer;
  }

  .panel-title-text {
    font-size: 26px;
    font-family: YOUSHEBIAOTIHEI, serif;
    text-align: left;
    display: flex;
    align-items: center;

    span {
      font-size: 20px;
    }
  }

  .panel-table {
    overflow: hidden;
    min-height: 80px;
  }

  .panel-chart {
    width: 100%;
    height: 186px;
    // max-height: 186px;
  }

  .panel-box-outline {
    height: calc(100% - 40px);
    // margin-top: 4px;
    padding: 0 9px;
    // background: white;
    // border: 1px solid;
    // border-image: linear-gradient(0deg, #1263cd, #044ea6) 1 1;
    position: relative;
  }

  .left-container {
    .panel-box-outline {
      background-image: linear-gradient(226deg, #0326548a, #02255400);
      border-top: 1px solid transparent;
      border-image-source: linear-gradient(-90deg, #03aced 0%, #003cb400 80%, #042857 100%);
      border-image-slice: 1;
      position: relative;

      &::after {
        position: absolute;
        z-index: 5;
        right: 0;
        top: 0;
        height: 100%;
        width: 1px;
        content: "";
        background-image: linear-gradient(0deg, #066ef800, #05dbf8);
      }
    }
  }

  .right-container {
    .panel-box-outline {
      padding: 0 0 0 18px;
      background-image: linear-gradient(45deg, #0326548a, #02255400);
      border-bottom: 1px solid transparent;
      border-image-source: linear-gradient(90deg, #03aced 0%, #003cb400 80%, #042857 100%);
      border-image-slice: 1;
      border-top: 0;
      position: relative;

      &::after {
        position: absolute;
        z-index: 5;
        left: 0;
        top: 0;
        height: 100%;
        width: 1px;
        content: "";
        background-image: linear-gradient(180deg, #066ef800, #05dbf8);
      }
    }
  }
}

.ysqxx-table {
  background: transparent !important;
  padding: 0;

  .vxe-pager,
  .vxe-toolbar,
  .vxe-table--body-wrapper,
  .vxe-table--header-wrapper {
    background: transparent !important;
  }

  .vxe-header--row {
    background: url("~@/assets/images/ysqxx/table-header.png") no-repeat left bottom;
    // background: linear-gradient(180deg, transparent 0%, rgba(84, 179, 247, 0.3) 100%);
    background-size: 100% 50%;
    font-size: 14px;
    color: $--color-text-blue;

    .vxe-header--column {
      padding: 6px 0 !important;
      background: transparent;
      height: 32px;
    }

    .vxe-resizable.is--line {
      display: none;
    }
  }

  .vxe-body--row {
    color: #d7f3fa;
    font-size: 14px;
    background: transparent;

    &.row--current,
    &.active-row {
      background: transparent;
    }

    &.row--current .vxe-body--column,
    &.active-row .vxe-body--column {
      background: linear-gradient(180deg, transparent 0%, #0262e7 100%) left bottom no-repeat;
    }

    .vxe-body--column {
      padding: 6px 0 !important;
      background: linear-gradient(180deg, transparent 0%, rgb(3 91 211 / 33%) 100%) left bottom no-repeat;
      background-size: 100% 70%;
      height: 37px;
    }

    .vxe-cell {
      line-height: 14px;
    }
  }

  .vxe-pager {
    color: $--color-text-white;

    .vxe-pager--jump-prev,
    button {
      background: #083166;
      border: 1px solid $--color-border-blue;
    }

    .vxe-input--inner {
      background: #083166;
      border: 1px solid $--color-border-blue;
      border-radius: 4px;
      color: #fefefe;
    }
  }

  .vxe-cell--filter .vxe-filter--btn {
    color: #34d6fa69;

    &:hover {
      color: $--color-text-blue;
    }
  }

  .col--filter.is--filter-active .vxe-cell--filter .vxe-filter--btn {
    color: $--color-text-blue;
  }

  .el-popover {
    background-color: rgba(8, 49, 102, 1);
    border: 1px solid $--color-border-blue;
    border-radius: 4px;
    color: white;

    .table-filter-panel {
      .el-input__inner {
        background: rgba(8, 49, 102, 0.3);
        border: 1px solid $--color-border-blue;
        border-radius: 4px;
        color: #fefefe;
        height: 28px;
        line-height: 28px;
        font-size: 12px;
      }

      .el-button {
        background: rgba(8, 49, 102, 0.3);
        border: 1px solid $--color-border-blue;
        border-radius: 4px;
        color: #fefefe;
      }

      .el-select-dropdown {
        background-color: rgba(8, 49, 102, 1);
        border: 1px solid $--color-border-blue;
        border-radius: 4px;

        .popper__arrow {
          border-top-color: $--color-border-blue !important;
          border-bottom-color: $--color-border-blue !important;

          &::after {
            border-top-color: rgba(8, 49, 102, 1) !important;
            border-bottom-color: rgba(8, 49, 102, 1) !important;
          }
        }
      }

      .el-select-dropdown__item {
        color: white;

        &.hover {
          background-color: #0473e1;
        }
      }
    }
  }

  &.column-merging {
    .vxe-header--column:not(.col--last) {
      border-right: 1px solid;
      border-image: linear-gradient(0deg, rgba(37, 101, 159, 0) 0%, #5cadff 49%, #042e61 99%) 1 1;
    }

    .vxe-body--column:not(:last-child) {
      border-right: 1px solid #114e99;
    }
  }
}

.ysqxx-form {
  .el-form-item__label {
    color: $--color-text-white;
  }

  .el-form-item--mini {
    .blue-date-picker {
      .el-input__inner {
        padding-left: 30px;
      }

      .el-input__icon {
        line-height: 28px;
      }
    }
  }
}

.blue-select {
  font-size: 12px;
  width: 90px;

  &.el-select .el-input__inner,
  &.el-cascader .el-input__inner {
    padding-left: 8px;
  }

  .el-input__inner {
    background: rgba(8, 49, 102, 0.3);
    border: 1px solid $--color-border-blue;
    border-radius: 4px;
    color: #fefefe;
    height: 28px;
    line-height: 28px;
    font-size: 12px;
  }
}

.blue-select-dropdown {
  background-color: rgba(8, 49, 102, 1);
  border: 1px solid $--color-border-blue;
  border-radius: 4px;

  .el-select-dropdown__item {
    color: white;

    &.hover {
      background-color: #0473e1;
    }
  }

  .el-cascader-node {
    color: white;

    &:hover,
    &.in-active-path {
      background-color: #0473e1;
      color: white;
    }
  }

  .el-cascader-menu {
    border-right: 1px solid $--color-border-blue;
  }

  .el-date-picker__header .el-picker-panel__icon-btn,
  .el-date-picker__header .el-date-picker__header-label,
  .el-month-table td .cell {
    color: white;
  }

  .el-month-table td.disabled .cell {
    color: #939497;
    background-color: transparent;
  }

  .popper__arrow {
    border-bottom-color: $--color-border-blue !important;
    border-top-color: $--color-border-blue !important;

    &::after {
      border-bottom-color: rgba(8, 49, 102, 1) !important;
      border-top-color: rgba(8, 49, 102, 1) !important;
    }
  }
}
// 驾驶舱公用组件样式单独控制
.light-blue .ysqxx-layout {
  .b-b {
    border-bottom: 1px solid #084e94;
  }

  .c-gray-blue {
    color: #c9e7f1;
  }
  .jsc-f-c { color: #e3eef7; }

  .locate-panel-container {
    border: 1px solid #0386c8ba;
    background: #042976d6;

    .lp-text-button {
      background-color: rgb(13 51 100);
      border: 1px solid #06559a;
      color: #e3eef7;

      &:hover {
        background: linear-gradient(0deg, #089cdc 0%, #075cac 100%) !important;
      }
    }

    .el-input__inner {
      background: #0d3364;
      border-color: #06559a;
      color: #fff;
    }
  }

  .el-container.map-layer-controller {
    border: 1px solid #0386c8ba;
    background: #042976d6;

    .el-checkbox .el-checkbox__inner {
      background: #024b8be6 !important;
      border-color: #047bb7 !important;
    }

    .el-checkbox__input.is-indeterminate .el-checkbox__inner,
    .el-checkbox.is-checked .el-checkbox__inner {
      border-color: #04aeff !important;
      background: #0263d1 !important;
    }

    .el-tree {
      color: #fff;

      .expanded.el-tree-node__expand-icon.el-icon-caret-right {
        color: #fff;
      }
    }

    .custom-tree-node {
      .custom-tree-node-content {
        .svg-icon.c-white {
          color: #fff;
        }
      }

      .my-layer-name {
        &:hover {
          background: rgba(21, 120, 255, 0.3);
        }
      }
    }
  }

  $bgColor: rgba($color: #042653, $alpha: 0.8);
  $textColor: #fff;

  .map-search-panel {
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);

    .el-input-group__append {
      background: $bgColor;
      border-color: #0386c8ba;

      .el-button {
        >i {
          color: $textColor;
        }
      }
    }

    .el-input__inner {
      background: $bgColor;
      color: $textColor;
      border-color: #0386c8ba;
    }

    .el-input-group__prepend {
      background: rgba(4, 38, 83, 0.3);

      .el-select {
        .el-input {
          .el-input__inner,
          .el-select__caret {
            color: $textColor;
          }
        }
      }
    }
  }
}

.ysqxx-map.map-container {
  .ol-popup.tips > div {
    border: 1px solid #0386c8ba !important;
    background: #042976d6 !important;
    color: #e3eef7;

    .closeBox.hasclosebox {
      right: -0;
      top: -8px;
      color: #fff;
    }

    .ol-popup-content {
      padding: 10px 20px 10px 10px;
    }

    .anchor {
      color: #042976d6 !important;
    }
  }

  .ol-popup.ysqxx-map-pop > div {
    border: 1px solid #0386c8ba !important;
    background: #042976d6 !important;
    color: #e3eef7;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);

    & .anchor {
      color: #0386c8ba !important;

      &::after {
        border-color: #042976d6 transparent !important;
      }
    }
  }

  .ol-popup-content {
    .map-card {
      .map-card-header {
        background: linear-gradient(-90deg, #032f6800 0%, #0477c6 50%, #04acf6 100%);
      }

      .map-card-content {
        .info-cell {
          .info-label {
            color: #e3eef7;
          }

          .info-value {
            color: #fff;
          }
        }

        .image-title-label {
          color: #fff;
        }

        .dashed-line {
          border-top: 1px dashed #e3eef7;
        }
      }
    }
  }

  .ysqxx-map-pop.ol-popup {
    margin: -40px -21px;
  }

  .ysqxx-map-pop.ol-popup-top.ol-popup-left {
    margin: 40px -22px;

    .anchor {
      color: #04a6f1 !important;

      &::after {
        border-color: #04a6f1  transparent !important;
      }
    }
  }

  .ysqxx-map-pop.ol-popup-right {
    margin: -40px 21px;
  }
}

.ysqxx-map-search.map-search-panel-popup.el-popper {
  background: rgba($color: #043676, $alpha: 0.8);
  border-color: #0386c8ba;

  .el-select-dropdown__item,
  .el-select-dropdown__item.selected,
  .el-select-dropdown__item.hover,
  .el-dropdown-menu__item,
  .el-dropdown-menu__item:hover,
  .el-autocomplete-suggestion__list > li {
    color: #e3eef7;
  }

  .el-select-dropdown__item.selected,
  .el-select-dropdown__item.hover,
  .el-dropdown-menu__item:hover,
  .el-autocomplete-suggestion__list > li:hover,
  .el-autocomplete-suggestion__list > li.highlighted {
    background: linear-gradient(0deg, #089cdc 0%, #075cac 100%);
  }
}

.ysqxx-modal {
  color: $--color-text-white;

  .vxe-modal--header,
  .vxe-modal--box {
    background-color: #032654;
    border-color: $--color-border-blue;
  }
}
